#ifndef DRAWABLE_H
#define DRAWABLE_H

#include "gameObject.h"

class Drawable : virtual public GameObject {
	private:
		int layer_;

	public:
		Drawable() : GameObject() {layer_ = 0;}
		Drawable(int layer) : GameObject() {layer_ = layer;}
		virtual ~Drawable() {}

		inline bool isDrawable() {return true;}
		virtual void draw(){}

		inline int  getLayer() {return layer_;}
		inline void setLayer(int layer) {layer_ = layer;}

		inline static bool compareDrawables(Drawable first, Drawable second) {
			return first.getLayer() < second.getLayer();
		}
};

#endif
